// yuangongzu.cpp : implementation file
//

#include "stdafx.h"
#include "d.h"
#include "yuangongzu.h"
#include "xiaosou.h"
#include "shangpinchaxun.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cyuangongzu dialog


Cyuangongzu::Cyuangongzu(CWnd* pParent /*=NULL*/)
	: CDialog(Cyuangongzu::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cyuangongzu)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void Cyuangongzu::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cyuangongzu)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cyuangongzu, CDialog)
	//{{AFX_MSG_MAP(Cyuangongzu)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cyuangongzu message handlers

void Cyuangongzu::OnButton1() 
{
	// TODO: Add your control notification handler code here
	Cxiaosou dlg;
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}

void Cyuangongzu::OnButton2() 
{
	// TODO: Add your control notification handler code here
	Cshangpinchaxun dlg;
	this->ShowWindow(SW_HIDE);
	dlg.DoModal();
	this->ShowWindow(SW_SHOW);
}
